@extends('prelist')
@section('left')
@parent
@endsection
@section('right')
    
<div class="crumb-wrap">
    <div class="crumb-list"><i class="icon-font"></i><a href="/prelist">店铺操作</a><span class="crumb-step">&gt;</span><span class="crumb-name">分类管理</span></div>


</div>

<div class="result-wrap">
    <form name="myform" id="myform" method="post">
        <div class="result-content">
            <table class="result-tab" width="100%">
                
                <tr>
                    <th>编号</th>
                    <th>分类名称</th>
                    <th>所属店铺</th>
                    <th>操作</th>
                </tr>
                @foreach($catlist as $c)
                <tr>
                    <td>{{$c->lid}}</td>
                    <td>{{$c->lname}}</td>                    
                    <td>{{$c->sname}}</td>                   
                    <td>
                        <a class="link-update" href="{{url('editcat',[$c->lid])}}">修改</a>
                        <a class="link-del" href="{{url('delcat',[$c->lid])}}">删除</a>
                        <a class="link-add" href="{{url('addcat')}}">添加</a>
                    </td>
                </tr>
                @endforeach

            </table>

            <div class="list-page">
                {!!$catlist->render()!!}
            </div>
        </div>
    </form>
</div>
@endsection
